package com.example.combwyaq.visualinterface.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.example.combwyaq.R;
import com.example.combwyaq.mvp.model.entity.UserMenuEntity;

public class UserMenuAdapter extends BaseQuickAdapter<UserMenuEntity, BaseViewHolder> {
    public UserMenuAdapter() {
        super(R.layout.itme_user_menu);
    }


    @Override
    protected void convert(BaseViewHolder helper, UserMenuEntity item) {
        helper.setText(R.id.menu_item_name,item.name);
        helper.setImageResource(R.id.user_menu_icon,item.imgId);

    }
}
